﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace Ccit.OA.MsSystemDoc
{
    /// <summary>
    /// DOC_B2(文档二级分类表)
    /// </summary>
    public class MsSecondClass
    {
        #region 私有属性
            private string _sysdocid;            //ID
            private string _sysnumber;          //编号
            private string _systypename;      //类别名称
            private string _superiorid;       //上级id
            private string _managemark;      //管理权限
            private string _manageid;        //管理权限Id 
            private string _viewmark;       //浏览权限
            private string _viewid;         //浏览权限id
            private string _primary;        //所属一级分类
            private string _state;          //删除标志 

            private string _manageupaddr;   //管理权限继承上级权限
            private string _managelower;   //同步下级权限
            private string _viewupaddr;   //浏览权限继承上级权限
            private string _viewlower;   //同步下级权限    

        #endregion
        #region 公有属性
            public string Sysdocid
            {
                set { _sysdocid = value; }
                get { return ((!string.IsNullOrEmpty(_sysdocid)) ? _sysdocid : ""); }
            }
            public string Sysnumber
            {
                set { _sysnumber = value; }
                get { return ((!string.IsNullOrEmpty(_sysnumber)) ? _sysnumber : ""); }
            }
            public string Systypename
            {
                set { _systypename = value; }
                get { return ((!string.IsNullOrEmpty(_systypename)) ? _systypename : ""); }
            }
            public string Superiorid
            {
                set { _superiorid = value; }
                get { return ((!string.IsNullOrEmpty(_superiorid)) ? _superiorid : ""); }
            }
            public string Managemark
            {
                set { _managemark = value; }
                get { return ((!string.IsNullOrEmpty(_managemark)) ? _managemark : ""); }
            }
            public string Manageid
            {
                set { _manageid = value; }
                get { return ((!string.IsNullOrEmpty(_manageid)) ? _manageid : ""); }
            }

            public string Viewmark
            {
                set { _viewmark = value; }
                get { return ((!string.IsNullOrEmpty(_viewmark)) ? _viewmark : ""); }
            }
            public string Viewid
            {
                set { _viewid = value; }
                get { return ((!string.IsNullOrEmpty(_viewid)) ? _viewid : ""); }
            }
            public string Primary
            {
                set { _primary = value; }
                get { return ((!string.IsNullOrEmpty(_primary)) ? _primary : ""); }
            }
            public string State
            {
                set { _state = value; }
                get { return ((!string.IsNullOrEmpty(_state)) ? _state : ""); }
            }

            public string Manageupaddr
            {
                set { _manageupaddr = value; }
                get { return ((!string.IsNullOrEmpty(_manageupaddr)) ? _manageupaddr : ""); }
            }
            public string Managelower
            {
                set { _managelower = value; }
                get { return ((!string.IsNullOrEmpty(_managelower)) ? _managelower : ""); }
            }
            public string Viewupaddr
            {
                set { _viewupaddr = value; }
                get { return ((!string.IsNullOrEmpty(_viewupaddr)) ? _viewupaddr : ""); }
            }
            public string Viewlower
            {
                set { _viewlower = value; }
                get { return ((!string.IsNullOrEmpty(_viewlower)) ? _viewlower : ""); }
            }

            public string Url { set; get; }

            #region  默认属性
            /*----------------------------------*/
            /// <summary>
            /// 机构
            /// </summary>
            public string agencId { get; set; }
            /// <summary>
            /// 部门
            /// </summary>
            public string deptId { get; set; }
            /// <summary>
            /// 职位
            /// </summary>
            public string jobId { get; set; }
            /// <summary>
            /// 级别
            /// </summary>
            public string levelId { get; set; }
            /// <summary>
            /// 创建用户
            /// </summary>
            public string cjuserId { get; set; }
            /// <summary>
            /// 创建时间
            /// </summary>
            public string cjdatetime { get; set; }
            /*----------------------------------*/
            #endregion
            
        #endregion
        #region method
            public MsSecondClass()
            { }
            public MsSecondClass(string sSysdocid, string sSysnumber, string Systypename, string sSuperiorID,
                        string sManagemark, string sManageid, string sViewmark,
                            string sViewId, string sPrimary, string sState)
            {
                _sysdocid = sSysdocid;            //ID
                 _sysnumber = sSysnumber;          //编号
                 _systypename = Systypename;      //类别名称
                 _superiorid = sSuperiorID;       //上级id
                 _managemark = sManagemark;      //管理权限
                 _manageid = sManageid;        //管理权限Id 
                 _viewmark = sViewmark;       //浏览权限
                 _viewid = sViewId;         //浏览权限id
                 _primary = sPrimary;        //所属一级分类
                 _state = sState;          //删除标志 
            }
        #endregion
    }
}
